package edu.sdwu.liqing.qasystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import edu.sdwu.liqing.qasystem.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 问题回答表 
 * </p>
 *
 * @author liqing@sdwu.edu
 * @since 2020-04-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="QaAnswer对象", description="问题回答表 ")
public class QaAnswer extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "评论数")
    private Integer commentNum;

    @ApiModelProperty(value = "问题id")
    private String questionId;

    public QaAnswer() {
        this.commentNum = 0;
    }

    @TableField(exist = false)
    private Boolean canOperate;


}
